import datetime


def get_sleeptime_by_hour():
    """provide view frequency according to time
    """
    now_hour = datetime.datetime.now().strftime('%H')
    now_hour = int(now_hour)
    if now_hour >= 11 and now_hour < 24:
        return 5
    if now_hour >= 7 and now_hour <= 10:
        return 7
    else:
        return 10


if __name__ == "__main__":
    """
    cd src
    python -m strategy.time_strategy
    """
    print(get_sleeptime_by_hour())
